package com.dcd.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
/*资讯表*/
public class Information implements Serializable {

    private int information_id;//资讯id
    private int information_car_model_fk_id;//车型id
    private int information_release_user_fk_id;//发布用户id
    private int information_content_fk_id;//资讯内容id
    private int information_images_fk_id;//资讯图片id
    private String information_title;//资讯标题
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date information_release_date;//发布时间
    private int information_read_count;//阅读次数


    //扩展字段
    private User user;
    private Follow_car_series follow_car_series;
    private Information_images information_images;
    private Information_content information_content;
    private Car_model car_model;


}
